<?php
/*******************************************************************************
 * $Date:: 25 May 2010 10:53:23												   $
 * $Revision::																   $
 * $Author:: Tuan Duong													   	   $
 * $Comment::															   	   $
 ******************************************************************************/
 
class Bet_Log_Error extends Bet_Log 
{
    public function __construct() {
        parent::__construct();
        $logDir = self::$configs["log"]["log_dir"];
        $betLogFile = self::$configs['log']['file']['bet'];
        
        $firebugWriter = new Zend_Log_Writer_Firebug();
        $fileWriter = new Zend_Log_Writer_Stream($logDir . $betLogFile);
        
        // Add writer to this log
        $this->addWriter($firebugWriter);
        $this->addWriter($fileWriter);
    }

    /**
     * @return Bet_Log_Error
     */
    public static function getInstance()
    {
        if (!isset(self::$instance)) {
            self::$instance = new Bet_Log_Error();
        }

        return self::$instance;
    }
} 
